//
//  NRWCarPublicNoticeDetailCell.m
//  New_Runway
//
//  Created by mack on 2018/1/24.
//  Copyright © 2018年 NelsonJ. All rights reserved.
//

#import "NRWCarPublicNoticeDetailCell.h"

#import "NRWCarPushMsgModel.h"

@interface NRWCarPublicNoticeDetailCell ()
@property (weak, nonatomic) IBOutlet UILabel *noticeTitle;
@property (weak, nonatomic) IBOutlet UILabel *noticeTime;
@property (weak, nonatomic) IBOutlet UILabel *noticeContent;

@end
@implementation NRWCarPublicNoticeDetailCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
-(void)setModel:(NRWCarHomeNoticeModel *)model{
    _model = model;
    self.noticeTitle.text = model.noticeTitle;
    self.noticeContent.text = model.noticeContent;
    NSLog(@"==========%@",model.noticeCreateTime);
    self.noticeTime.text = [NRWCarTurnTime timestampSwitchTime:[model.noticeCreateTime integerValue] andFormatter:@"YYYY-MM-dd hh:mm"];
}

- (void)setPushMsgModel:(NRWCarPushMsgModel *)pushMsgModel {
    
    _pushMsgModel = pushMsgModel;
    
    self.noticeTitle.text = pushMsgModel.title;
    self.noticeContent.text = pushMsgModel.alert;
    self.noticeTime.text = pushMsgModel.timeStr;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
